#include "MainScene.h"

using namespace cocos2d;
using namespace storm;

void MainScene::onEnter()
{
	CCLayer::onEnter();
	Adapter::Instance()->AdjustLayer(this);
	CCSize designSize = Adapter::Instance()->DesignSize();

	CCSprite *pSprGB = CCSprite::create(CSTR(ResPathMainUI + "main_bg01.jpg"));
	pSprGB->setPosition(ccp(designSize.width*0.5f, designSize.height*0.5f));
	addChild(pSprGB);

	m_pUIRoot = UIWindow::create();
	addChild(m_pUIRoot);

	MainWindow::OpenWindow(100);
}